using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MyRope : MonoBehaviour
{

    public GameObject prefab;


    // Start is called before the first frame update
    void Start()
    {

        //for(int i = 0; i < 10; ++i)
        //{
        //    var item = GameObject.Instantiate(prefab, transform);
        //    item.transform.localPosition = new Vector3(0, -i, 0);
        //    HingeJoint hinge = item.GetComponent<HingeJoint>();
        //    hinge.connectedBody = i == 0 ? RBody : this.transform.GetChild(i - 1).GetComponent<Rigidbody>();
        //    hinge.useSpring = true;
        //    hinge.enableCollision = true;
        //}
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
